package com.tz.aop.test.pojo;

/**
 * @Author bowenZhou
 * @date 2019-11-07 15:13
 */
public enum CommonError {

    USER_NOT_EXIST(10000, "用户不存在"),
    USER_PASSWORD_ERROR(10001, "密码错误"),
    ACCOUNT_EXCEPTION(10002, "用户账号状态异常"),
    UNAUTHORIZED_ACCESS(10003, "无权访问"),
    PARAMS_ERROR(10004, "参数异常"),
    TOKEN_INVALID(10005, "token 非法或失效"),
    TOKEN_NONE(10006, "token 缺失"),
//    LOCKED_STATUS(10007, "用户已锁定"),
//    DELETED_STATUS(10008, "用户已删除"),
//    ACTIVE_STATUS(10009, "用户未激活"),
    UPLOAD_FILE_ERROR(20000, "文件上传失败"),
    BUSINESS_ERROR(30000, "业务错误"),
    BUSINESS_ERROR_DUPLICATE(30001, "业务错误【数据重复】"),
    BUSINESS_ERROR_DATA(30002, "数据不存在"),
    SYSTEM_ERROR(40000, "系统异常"),
    SYSTEM_DISABLED(50000, "系统已被禁用"),
    DATABASE_ERROR(60000, "数据库操作失败");


    private  int id;
    private  String msg;

     CommonError(int id, String msg) {
        this.id = id;
        this.msg = msg;
    }


    public int getId() {
        return this.id;
    }

    public String getMsg() {
        return this.msg;
    }


    public void setId(int id) {
        this.id = id;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
